from django.contrib import admin
from .models import User, Types, Tasks, Colors, Userparams, User_Task


class ColorAdmin(admin.ModelAdmin):
    list_display = ('id', "color")
    list_display_links = ('id', "color")


admin.site.register(Colors, ColorAdmin)


class TypeAdmin(admin.ModelAdmin):
    list_display = ('id', "type")
    list_display_links = ('id', "type")


admin.site.register(Types, TypeAdmin)


class UserparamAdmin(admin.ModelAdmin):
    list_display = ('id', "telegr")
    list_display_links = ('id', "telegr")


admin.site.register(Userparams, UserparamAdmin)


class TaskAdmin(admin.ModelAdmin):
    list_display = ('id', "descr", "datet", "color", "type", "timet", "reminder")
    list_display_links = ('id', "descr", "datet", "color", "type", "timet", "reminder")


admin.site.register(Tasks, TaskAdmin)


class UserTaskAdmin(admin.ModelAdmin):
    list_display = ('id', "user", "task")
    list_display_links = ('id', "user", "task")


admin.site.register(User_Task, UserTaskAdmin)


# Register your models here.
